package dao

type Dao struct {
	U  *UserInfo
	P  *ProblemInfo
	C  *ContestInfo
	N  *NoticeInfo
	S  *SubmissionInfo
	Cd *ContestDetailInfo
}

func NewDao() (*Dao, error) {
	uD, err := NewUserInfo()
	pD, err := NewProblemInfo()
	cD, err := NewContestInfo()
	nD, err := NewNoticeInfo()
	sD, err := NewSubmissionInfo()
	cDD, err := NewContestDetailInfo()

	if err != nil {
		return nil, err
	}

	if err != nil {
		return nil, err
	}
	return &Dao{
		uD,
		pD,
		cD,
		nD,
		sD,
		cDD,
	}, nil
}
